package ink.xiaobaibai.common;

public enum ReportType {

    /**
     *
     */
    PERSONAL("人员"),
    DEVICE("机器"),
    DEPARTMENT("部门"),
    ;

    private String type;

    ReportType(String type) {
        this.type = type;
    }

    public String getType() {
        return this.type;
    }

    public static ReportType getReportType(String type) {
        for (ReportType value : values()) {
            if (value.type.equals(type)) {
                return value;
            }
        }
        return null;
    }

}
